package com.contiguous.pair.analyser.filereader;

import java.util.HashMap;
import java.util.Map;

public class ContiguousPairListFilter
{
	public static final int				IGNORE_NEW_LINES	= 1;
	public static final int				IGNORE_TAB			= 2;
	public static final int				IGNORE_DOUBLE_QUOTE	= 4;
	public static final int				IGNORE_SINGLE_QUOTE	= 8;

	private Map<Character, Character>	replacementMap;
	private int							filters;

	public ContiguousPairListFilter(int filters)
	{
		this(0, new HashMap<Character, Character>());
	}

	public ContiguousPairListFilter(int filters, HashMap<Character, Character> replacementMap)
	{
		this.filters = filters;
		this.replacementMap = replacementMap;
	}

	public void addFilter(int filter)
	{
		filters = filters | filter;
	}

	public Map<Character, Character> getReplacementMap()
	{
		return replacementMap;
	}

	public void setReplacementMap(Map<Character, Character> replacementMap)
	{
		this.replacementMap = replacementMap;
	}

	public int getFilters()
	{
		return filters;
	}

	public void setFilters(int filters)
	{
		this.filters = filters;
	}
}
